﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.ServiceModel;

namespace Easyleave.Workflow
{
	public class RuntimeFactory
	{
        private static string CONFIG_SECTION_NAME = "EasyleaveWorkflow";
        public static WorkflowRuntime GetWorkflowRuntime()
        {
            WorkflowRuntime workflowRuntime = new WorkflowRuntime(CONFIG_SECTION_NAME);
            ExternalDataExchangeService exSvc = new ExternalDataExchangeService();
            workflowRuntime.AddService(exSvc);
            workflowRuntime.StartRuntime();
            return workflowRuntime;

        }
	}
}
